import axios from "axios";

// 1. 创建request对象
const request = axios.create({
    baseURL: 'http://localhost:9090/api'
});

// 2. 配置全局响应拦截器
request.interceptors.response.use((resp) => {
    return resp.data;
})

// 3. 导出request
export default request;

